package com.emuporium.gymrat.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.emuporium.gymrat.android.exercises.ExercisesHome;

public class Home extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.home);
        
        Button routinesButton = (Button)findViewById(R.id.button_routines);
        Button exercisesButton = (Button)findViewById(R.id.home_button_exercises);
        Button logsButton = (Button)findViewById(R.id.button_log);
        Button settingsButton = (Button)findViewById(R.id.button_settings);
        Button loginLogoutButton = (Button)findViewById(R.id.button_login_logout);
        Button accountButton = (Button)findViewById(R.id.button_register_manage);
        TextView homeHello = (TextView) findViewById(R.id.home_hello);
        

		  
		routinesButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(Home.this, ProgramsHome.class);
				startActivity(intent);
			}
		});
		
		exercisesButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(Home.this, ExercisesHome.class);
				startActivity(intent);
			}
		});
		
		logsButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
//				Intent intent = new Intent(TestingGrounds.this, PageTwo.class);
//				startActivity(intent);
			}
		});
		
		settingsButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
//				Intent intent = new Intent(TestingGrounds.this, PageTwo.class);
//				startActivity(intent);
			}
		});
		
		loginLogoutButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
//				Intent intent = new Intent(TestingGrounds.this, PageTwo.class);
//				startActivity(intent);
			}
		});
		
		accountButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
//				Intent intent = new Intent(TestingGrounds.this, PageTwo.class);
//				startActivity(intent);
			}
		});
    }
}